
from selenium import webdriver
import time

#1、配置打开浏览器
driver = webdriver.Chrome()
driver.implicitly_wait(10)  #全局driver等待10秒


#2、赋值给driver 打开网站
driver.get("http://222.128.11.194:82/vueweb/#/loginPage/1")
time.sleep(3)

driver.find_element_by_css_selector("[class='userName']").send_keys("18612320147")
time.sleep(3)
driver.find_element_by_css_selector("[class='pwd']").send_keys("111111a")
time.sleep(3)
#driver.find_element_by_css_selector("[class='btn-bg']").click()

driver.find_element_by_id("loginBtn").click()
print(driver.get_cookies())
time.sleep(10)





